package phone;

/**
 *<br>Description</b><br>
 * Phone , abstract superclass for all types of phone nr
 * @author emanuel tanasa
 */
public abstract class Phone {
	/**Phone nr */
	private Long phone;
	
	public Phone(Long phone) {
		this.phone=phone;
	}
	
	/**
	 * Validates the inputed phone nr
	 * @param phone , the nr  to be validated
	 * @return true if it'a valid  format
	 */
	public abstract boolean valid(Long phone);

	@Override
	public String toString() {
		return "Phone [phone=" + phone + "]";
	}
	
}
